package com.project.common.exception;

public class ErrorCode {
    private int code;
    private String message;

    private ErrorCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public static ErrorCode of(int code, String message) {
        return new ErrorCode(code, message);
    }

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return message;
    }
}
